#ifndef POPUP_PROGRESS_WIDGET_HPP
#define POPUP_PROGRESS_WIDGET_HPP

#include <ui_progresswidget.h>

class PopupProgressWidget : public QWidget, private Ui_ProgressWidget
{
  Q_OBJECT

public:
  PopupProgressWidget(QWidget *parent,
                      const QString & p_label = "In progress...",
                      int p_initialValue = 0)
  : QWidget(parent) {
    setupUi(this);
    m_progressBar->setValue(p_initialValue);
    m_itemLabel->setText(p_label);
  }

  inline void setProgress(int value) {
    m_progressBar->setValue(value);
  }
};

#endif // POPUP_PROGRESS_WIDGET_HPP

